<template>
  <div id="app">
    <router-view></router-view>
    <ul class="nav" v-show="$route.meta.show">
      <li>
        <router-link :to="{  path:  '/shouye'  }">去首页</router-link>
      </li>
      <li>
        <router-link :to="{  path:  '/fenlei'  }">去分类</router-link>
      </li>
      <li>
        <router-link :to="{  path:  '/car'  }">去购物</router-link>
      </li>
    </ul>
  </div>
</template>

<script>


export default {
  name: 'App',
  components: {

  }
}
</script>

<style lang="scss" scoped>
#app {
  padding-bottom: 100px;
  font-size: 30px;

  .nav {
    list-style: none;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    height: 100px;
    background-color: aquamarine;
    align-items: center;
    //margin-bottom: 100px;
    
    li {
      .router-link-active {
        color: deeppink;
      }
    }
  }
}

</style>
